<?php

    include "mysql.php";

    $res = mysqli_query($link,"SELECT * FROM band");
    $s = array();
    while($arr = mysqli_fetch_assoc($res)) {
        array_push($s,$arr);
    }
    // 数据返回给前端
    echo json_encode($s);

?>